package com.gxwz.document.business.util;

/**
 * 全局常量配置
 * @author Mr.xucb
 * @version 1.0
 */
public final class SystemContext {
	public static final Integer DEFUALT_PAGE_SIZE=12;//默认分页数,Result有一个BUG，
	public static final Integer DEFUALT_PAGE_NUM=1;//默认分页码

	public static final String ACTION_CONTENT_TYPE="application/json;charset=utf-8";//默认传输编码，注意utf-8
	
	public static final int TIME_INTERVAL_MSG = 900;//单位，秒。2次发送短信的时间间隔不能少于900秒
	public static final String UPLOAD = "/upload";
	public static final String RES ="/upload/resource/"; //新闻上传目录
	public static final String IMG ="/upload/images/"; //图片上传目录
	public static final String DOC ="/upload/doc/"; //文档上传目录
	/**
	 * 获取景点上传图片的路径
	 * @return 景点上传图片的路径
	 */
	public static String getTourProductUploadURL(){
		String root_url = "/upload/business/tour_product/";
		root_url = root_url + MyTime.getStringDateShort()+"/";
		return root_url;
	}

	/**
	 * 获取产品上传图片的路径
	 * @return 产品上传图片的路径
	 */
	public static String getTourProductFunctionUploadURL(){
		String root_url = "/upload/business/tour_product_function/";
		root_url = root_url + MyTime.getStringDateShort()+"/";
		return root_url;
	}

	/**
	 * 获取攻略上传图片的路径
	 * @return 攻略上传图片的路径
	 */
	public static String getRaidersUploadURL(){
		String root_url = "/upload/business/raiders/";
		root_url = root_url + MyTime.getStringDateShort()+"/";
		return root_url;
	}

	/**
	 * 获取广告上传图片的路径
	 * @return 狗狗啊上传图片的路径
	 */
	public static String getBannerUploadURL(){
		String root_url = "/upload/business/banner/";
		root_url = root_url + MyTime.getStringDateShort()+"/";
		return root_url;
	}

	/**
	 * 获取用户头像的路径
	 * @return 用户头像上传图片的路径
	 */
	public static String getUserImgURL(){
		String root_url = "/upload/business/user_img/";
		//root_url = root_url + MyTime.getStringDateShort()+"/";
		return root_url;
	}
	
	private static final String SITE_WIDE_SECRET = "GXUWZ_0774_KEY";  
	
}
